package com.lg.erp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {


        @RequestMapping("{page}")
        public String goPage(@PathVariable String page){
            return page;
        }
        @RequestMapping("/{path}/{page}")
        public String goPage(@PathVariable String path,@PathVariable String page){
            return path+"/"+page;
        }
//        @RequestMapping("{path1}/{path2}/{page}")
//        public String goMorePage(@PathVariable String path1,@PathVariable String path2,@PathVariable String page){
//        return path1+"/"+path2+"/"+page;
    }
        /*@RequestMapping("{path1}/{path2}/{page}")
        public String goMorePage(@PathVariable String path1,@PathVariable String path2,@PathVariable String page){
        return path1+"/"+path2+"/"+page;
    }*/
        /*@RequestMapping("/login")
        public String goLogin(){
            return "login";
        }*/


